<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>jquery</title>

</head>

<body>
    <div id="div1">jquery</div>
    <div id="purehtml-container"></div>
</body>

</html>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script>
    const render = ($) => {
        $('#purehtml-container').html('Hello, render with jQuery')
        return Promise.resolve()
    }

    ((global) => {
        global['purehtml'] = {
            bootstrap: () => {
                console.log('purehtml bootstrap')
                return Promise.resolve()
            },
            mount: () => {
                console.log('purehtml mount')
                return render($)
            },
            unmount: () => {
                console.log('purehtml unmount')
                return Promise.resolve()
            }
        }
    })(window)
    console.log('----')

</script>